#pragma once
#include "Object.h"
#include "MoveObject.h"
#include "GameDefine.h"
class Box;
class Grenade : public Object, public MoveObject
{
	Sprite* _explode;
	Sprite* _bullet;
	SPRITE_ID _id;
	bool _isAlive;	
	float _timeExplode;	
	float _v;
	float _angle;
public:
	Grenade(SPRITE_ID id);
	~Grenade(void);		
	void process(ObjectType oType, D3DXVECTOR2 pos, float v, float angle);	
	void update(float groundLevel);
	void render();
	bool isAlive();

	virtual Box* getCollisionBox();

};

